home *** CD-ROM | disk | FTP | other *** search
/ United Public Domain Gold 2 / United Public Domain Gold 2.iso / utilities / pu023.dms / pu023.adf / Micro-View! / MicroView.Doc.Z / MicroView.Doc
Text File  |  1988-07-08  |  11KB  |  155 lines

  1. c
  2. HH  H  H  H  H  H   H   0H1H  0H  H  3H     6H  5H  4H  3H  2H    3H  2H  1H  0H  9H  9H     8H  7H  6H  5H      4H 1H 9H  8H  7H  6H  5H  5H 1H    4H  3H  8H      3H  4H  5H4H  9H  0H  1H  2H  3H         9H  8H  7H  1H       4H     H  H  H  H  H  2H H  H  4H  3H  2H  1H  0H  1H  0H  9H  8H  7H  7H  6H  5H  4H  3H  7H  6H  5H  4H  3H  2H  2H  1H  1H  2H  7H  8H  9H  0H  1H  7H  6H  5H  2H  6H                  6H                            1H                14H  13H  12H  11H  10H     14H15H 15H   17H   19H   21H   23H                                                   11H9H      8H      7H      6H     5H    4H   26H27H   26H   25H   23H   22H   21H   20H   19H    36H            35H   34H   33H   32H   31H   30H   29H   28H             35H      52H     54H  53H  52H  51H  50H  49H  48H  47H        55H  56H  57H  58H  59H  57H        63H   64H   65H   66H   67H   68H   69H   70H     H               2H1H                                                    21H  19H  17H  15H  13H  12H  11H  10H  9H  8H  7H  6H  5H  4H  3H  2H  17H  18H  19H  20H  21H  23H  24H  25H  26H  27H  28H  25H    29H  30H  31H  32H  33H  34H  35H            36H    32H        50H  52H  51H  50H  49H  48H  47H  34H 46H  45H  50H      57H  56H  55H  54H  50H     55H  57H      62H  63H  64H  65H  66H  67H  68H  68H      74H
  3. HHH  H  H
  4. 
  5.  
  6.                       MicroView
  7.         Three Dimensional Molecular Modeling
  8.              Version 0.5ß   20-Aug-88
  9.                   by Wilson Kwok
  10.  
  11. About MicroView:
  12.      If you've ever looked through chemistry texts, you'll find many two-
  13. dimensional diagrams supposedly representing the structure of a molecule.
  14.  
  15.   e.g.     H     H        O          O       H H            Cl
  16.             \   /         |         /        | |             |
  17.              C=C       Cl-C-Cl     H       H-C-C-O-H     Cl__C
  18.             /   \                   \        | |            / \
  19.            H     H                   O       H H          Cl   Cl
  20. Perhaps you've wondered how these would actually look if you could pop them
  21. off the page and rotate them to different viewing angles. MicroView gives 
  22. you the capability to examine structural models in three dimensions!
  23. Using MicroView:
  24.     MicroView must be invoked from CLI and supplied with the filename of a
  25. molecule definition file. (denoted by the '.MOL' extension) For example:
  26. 1> MicroView Test.mol
  27. The structural model of "Test" would be rendered on the upper 3/4 portion
  28. of the display.  A control panel is located on the lower right corner of the
  29. screen. This contains buttons which let you manipulate the molecule and 
  30. perform several special functions. It resembles something like this:
  31.           ___________________________________ __________________
  32.          |\ _______________________________ /|\ ______________ /|
  33.          | |   _____     _____     _____   | | |   ________   | |
  34.          | |  /     \   /     \   /     \  | | |  /        \  | |
  35.          | | |       | |       | |       | | | | |   FULL   | | |
  36.          | | |   Z+  | |   X-  | |   Z-  | | | | |          | | |
  37.          | | |       | |       | |       | | | | |  SCREEN  | | |
  38.          | |  \_____/   \_____/   \_____/  | | |  \________/  | |
  39.          | |   _____     _____     _____   | | |   ________   | |
  40.          | |  /     \   /     \   /     \  | | |  /        \  | |
  41.          | | |       | |       | |       | | | | |          | | |
  42.          | | |   Y-  | | STOP! | |   Y+  | | | | |  LEGEND  | | |
  43.          | | |       | |       | |       | | | | |          | | |
  44.          | |  \_____/   \_____/   \_____/  | | |  \________/  | |
  45.          | |   _____     _____     _____   | | |   ________   | |
  46.          | |  /     \   /     \   /     \  | | |  /        \  | |
  47.          | | |       | |       | |       | | | | |          | | |
  48.          | | | RESET | |   X+  | |  RND  | | | | |   EXIT   | | |
  49.          | | |       | |       | |       | | | | |          | | |
  50.          | |  \_____/   \_____/   \_____/  | | |  \________/  | |
  51.          | |_______________________________| | |______________| |
  52.          |/                                 \|/                \|
  53.           ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯ ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
  54.          Gadget          Function
  55.  
  56.               EXIT    Exit from program
  57.        FULL SCREEN    Hide the control panel and enable full viewing
  58.                          area (Click left mouse-button to call up
  59.                          control panel again)
  60.             LEGEND    Show what element each colored ball represents
  61.              RESET    Reset molecule to initial position
  62.                RND    Random molecule rotation for demonstration
  63.                          purposes (Currently not implemented)
  64.               STOP    Freeze rotating molecule to current position
  65.                 X-    Rotate molecule clockwise around X-axis
  66.                 X+    Rotate molecule counter-clockwise around X-axis
  67.                 Y-    Rotate molecule clockwise around Y-axis
  68.                 Y+    Rotate molecule counter-clockwise around Y-axis
  69.                 Z-    Rotate molecule clockwise around Z-axis
  70.                 Z+    Rotate molecule counter-clockwise around Z-axis
  71. All rotational gadgets are additive. This means that every time you click on
  72. one of those gadgets, the molecule will rotate in the indicated direction 
  73. an additional 0.05 radians per frame.  This allows you to control the 
  74. molecule's rotational speed.  All other buttons are self-explanatory. Just 
  75. experiment with them to see what they do.
  76. Defining Your Own Molecules:
  77.     All files that come with MicroView with the ".mol" extension are sample
  78. models. If you're good at geometry, you can easily create your own!
  79.                                                     y
  80.  
  81.                                                     |
  82.                                                     |
  83.   MicroView uses coordinates                        |
  84.   according to the right-hand system.               |
  85.   The plane of your monitor screen                  |z
  86.   forms the x-y plane with the          ------------O------------ x
  87.   origin located at the center.                     |
  88.   The positive z-axis points                        |
  89.   straight out towards your face.                   |
  90.                                                     |
  91.                                                     |
  92.     A complete molecule definition file consists of the molecule name, atom 
  93. names and corresponding colors, and 3-tuples representing the points in 
  94. space where you want to center an atom. The diameter of an atom is one unit.
  95. Atoms can be rendered in 6 colors: 0=Red, 1=Orange, 2=Yellow, 3=Green,
  96. 4=Blue, 5=Purple.
  97. The general format of a molecule file is described here in "C" data types:
  98.   %s                              ; Name of molecule
  99.   %d                              ; Number of different atoms in molecule
  100.   %d     %s \
  101.       :      \___________________ ; An array representing all atom color
  102.       :      /                    ; values and labels (6 characters max.)
  103.   %d     %s /
  104.   %d                              ; Number of total atoms in molecule
  105.   %f     %f     %f     %d \
  106.              :             \      ; An array of 3-tuples representing the
  107.              :              >---- ; the centered location of each atom,
  108.              :             /      ; followed by the atom's color value
  109.   %f     %f     %f     %d /
  110.   Here is a simple illustrative example:
  111.   Linear 5-Atom Molecule          ; Name of molecule
  112.   3                               ; Three different atoms in this molecule
  113.   0      C                        ; Red ball represents carbon atom
  114.   3      Cl                       ; Green ball represents chlorine atom
  115.   5      F                        ; Purple ball represents flourine atom
  116.   5                               ; Five atoms in this molecule
  117.   0      0      0      0          ; Place a red ball at (0,0,0)
  118.   -2     0      0      3          ; Place a green ball at (-2,0,0)
  119.   -1     0      0      3          ; Place a green ball at (-1,0,0)
  120.   1      0      0      5          ; Place a purple ball at (1,0,0)
  121.   2      0      0      5          ; Place a purple ball at (2,0,0)
  122. Atoms should be located within an imaginary 4-unit radius sphere centered
  123. at the origin.  Atoms that lie outside this region may not appear in the
  124. viewing area, and could result in an erratic display when the molecule is 
  125. rotating about. Examine the samples for help in creating your own.
  126. Program Distribution, Inquiries, & Support:
  127. This program is freely distributable to anyone, everywhere. Upload it to
  128. your local BBS.  If you find this program useful (or at least interesting)
  129. and have any questions, you can contact me at any of the following BBS's 
  130. I'll answer any questions if you need help in creating molecule files, or 
  131. want to know how the program works.   
  132.  
  133.                Wil Kwok
  134.  
  135.         Elmhurst BBS        Battlefield BBS
  136.         (718) 565-7482      (718) 969-8156
  137.         Both are 300/1200/2400 bps & 24 hrs.
  138.          CLICK CLOSE GADGET, OR USE CTRL-C OR CTRL-D TO EXIT  
  139.